<template>
  <div class='vb-formItem-wrapper'>
    <label
      class="vb-formItem-user"
      :style="{width:labelWidth}"
    >{{label}}</label>
    <slot></slot>
  </div>
</template>
<script>
export default {
  components: {},
  name: "vbFormitem",
  props: {
    label: {
      type: String,
      default: "Username",
    },
    labelWidth: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
  methods: {},
  mounted() {},
};
</script>
<style lang='scss' scoped>
.vb-formItem-wrapper {
  margin: 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  .vb-formItem-user {
    margin-right: 10px;
  }
}
</style>